package cn.itsource.org.service;

import cn.itsource.basic.service.IBaseService;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService extends IBaseService<Department, DepartmentQuery> {
    ////查询所有
    //List<Department> getAll();
    ////分页查询
    //PageList<Department> getPageList(DepartmentQuery query);
    //
    ////添加和修改
    //void addOrUpdate(Department department);
    //
    ////删除
    //void delete(Long id);

    //无限极树
    List<Department> treeDept();

    //父级部门
    List<Department> getAllParentDepa();

    //是否是父级
    List<Department> whetherItIsAParentDepartment(Long id);

}